#!/usr/bin/env python
# coding=utf-8
# __author__ = 'Yunchao Ling'

import shutil
import fire
import os


def ijsem_rename(tsv_file: str, des_path: str):
    infile = open(tsv_file, "r")
    infile.readline()
    for line in infile:
        line = line.rstrip("\r")
        splitline = line.split("\t")
        shutil.copy2(os.path.join("D:/Seafile_biosino/elmsg/数据/VP LIST审编/validation__notification_IJSB", splitline[9]),
                     os.path.join(des_path, splitline[10]+".pdf"))
    infile.close()


if __name__ == '__main__':
    fire.Fire()
